import { ApiProperty } from '@midwayjs/swagger'

import { ResultVO } from '@/vo'

/**
 * 登录结果
 */
export class LoginVO extends ResultVO(null) {
  @ApiProperty({ description: '登录秘钥', type: 'string', example: '' })
  data: string
}

/**
 * 验证码结果
 */
class CaptchaVO implements ICaptchaVO {
  @ApiProperty({ description: '验证码ID', example: '' })
  id: string

  @ApiProperty({ description: '验证码BASE64', example: '' })
  imageBase64: string
}

/**
 * 获取验证码结果
 */
export class GetCaptchaVO extends ResultVO(CaptchaVO) {}
